package com.tedu._06weibo.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

//状态码信息和提示信息定义为一个枚举，增加代码可读性
@Getter
@AllArgsConstructor
public enum Status {
    USERNAME_ERROR(1000,"用户名错误"),
    PASSWORD_ERROR(1001,"密码错误"),
    USER_EXISTS(1002,"用户名被占用"),
    NOT_LOGIN(1003,"未登录"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败"),
    OPERATION_ERROR(4001,"操作错误"),
    VALIDAE_FAILED(4002,"验证失败");
    private Integer statusCode;
    private String maeesage;
}
